package com.shuyuwl.core.support;

import lombok.Getter;

/**
 * 状态码枚举类
 * @Author ZChao
 * @Date 2019/9/9
 **/
@Getter
public enum ResponseCode {
    /**
     * 返回成功的状态码
     */
    SUCCESS(200, "success"),

    /**
     * 返回错误的状态码
     */
    ERROR(400, "error");

    private Integer code;
    private String message;

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
